<?php
require_once('../lib/standard.php');

global $pineza;
set_pineza();

if ((!perastike('login')) || (!$_REQUEST['login'])) telos('no login name passed');
else $login = $_REQUEST['login'];
if ($login != $pineza->login) telos('access denied!');

$query = "DELETE FROM `note` WHERE `user` = '" . escape($login) .
	"' AND `board` = 'TRASH'";
mysqli_query($pineza->db, $query);

$pineza->close_database();
print AJAX_SEP;
?>
